<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			var myWorker = new Worker('web-worker.js');
			myWorker.postMessage(20000);
			for (var i = 0; i < 20000; i++) {
				console.log('main' + i, ",time:" + new Date().toLocaleString());
			}

			// for (var i = 0; i < 20000; i++) {
			// 	console.log('worker' + i, ",time:" + new Date().toLocaleString());
			// }

		</script>
	</body>
</html>